<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta charset="UTF-8">
		<title>登入页面</title>
		<script src="support/jquery.js"></script>
		<script type="text/javascript" src="support/layui/layui.js" ></script>
		<link rel="stylesheet" href="support/layui/css/layui.css"/>
		<c:set var="ctp" value="${pageContext.request.contextPath}"/>
	</head>
	<style>
		.inputlength{
			width: 300px;
		}
		.borderRadio{
			border-radius: 10px;
		}
		*{
			font-size: 16px;
		}
	</style>
	<body>
		<div>
			<form class="layui-form" action="${ctp}/system/login/login_page.html">
			  <div class="layui-form-item">
			    <label class="layui-form-label">账号：</label>
			    <div class="layui-input-inline">
			      <input type="text" name="title" required  lay-verify="required" placeholder="请输入账号" autocomplete="off" class="layui-input inputlength borderRadio">
			    </div>
			  </div>
			  <div class="layui-form-item">
			    <label class="layui-form-label">密码：</label>
			    <div class="layui-input-inline">
			      <input type="password" name="password" required lay-verify="required" placeholder="请输入密码" autocomplete="off" class="layui-input inputlength borderRadio">
			    </div>
			  </div>
			  <div class="layui-form-item">
			    <div class="layui-input-block">
			      <input type="submit" value="LOGIN" class="layui-btn"/>
			      <button type="reset" class="layui-btn layui-btn-primary">RESET</button>
			    </div>
			  </div>
			</form>
		</div>
	</body>
	<script>
		layui.use('form', function(){
		  var form = layui.form;
		  //监听提交
		  form.on('submit(formDemo)', function(data){
		    layer.msg(JSON.stringify(data.field));
		    return false;
		  });
		});
	</script>
</html>